#include "RenderQueue.h"

namespace egg{

    RenderQueue::RenderQueue(){
    }

    void RenderQueue::clear(){
        mOpaqueList.clear();
        mTransparentList.clear();
    }

    void RenderQueue::addItem(Drawable3D* _drawable){
        uint32 flags=_drawable->mMaterial->getPass(0)->getFlags();
        if(flags&DF_Opaque)
            mOpaqueList.push_back(_drawable);
        else
            mTransparentList.push_back(_drawable);
    }

}